import Login from "@/components/Login";
import producers from "@/components/Producers";
import Register from "@/components/Register";
import bidders from "@/components/bidders";
import shippers from "@/components/shippers";
import sellers from "@/components/sellers";
import consumers from "@/components/consumers";
import food from '@/components/Food'
import user from '@/components/User'
import Home from "@/components/Home";
import echarts1 from "@/echarts/echarts1";
import echarts2 from "@/echarts/echarts2";
import echarts3 from "@/echarts/echarts3";
import echarts4 from "@/echarts/echarts4";

export default [
    {path: '/', redirect: '/login'},
    //  用户登录
    {path: '/login', component: Login},
    //  用户注册
    {path: '/register', component: Register},
    //  生产商
    {path: '/producers', component: producers},
//  收购商
    {path: '/bidders', component: bidders},
//    运输商
    {path: '/shippers', component: shippers},
//  销售商
    {path: '/sellers', component: sellers},
    {
        path: '/food', component: food
    },
    {
        path: '/user', component: user
    },
//  消费者
    {path: '/consumers', component: consumers},
//  admin用户
    {path: '/home', component: Home},
    {path: '/echarts1', component: echarts1},
    {path: '/echarts2', component: echarts2},
    {path: '/echarts3', component: echarts3},
    {path: '/echarts4', component: echarts4}
]